org.eclipse.vtp.framework.common.services
Class Controller

java.lang.Object
  extended by org.eclipse.vtp.framework.common.services.Controller
All Implemented Interfaces:
IController

public class Controller
extends java.lang.Object
implements IController

An implementation of controller that enqueues commands with a command queue.

Author:
Lonnie Pryor

Constructor Summary
Controller(ICommandProcessor commandProcessor, IVariableRegistry variableRegistry, IScriptingService scriptingService)
          Creates a new Controller.
 
Method Summary
 IExitDispatcher createExit(ExitConfiguration configuration, AssignmentConfiguration[] assignments)
          Creates an exit dispatcher for the specified configuration.
 IForwardDispatcher createForward(DispatchConfiguration configuration)
          Creates a forward dispatcher for the specified configuration.
 IIncludeDispatcher createInclude(DispatchConfiguration configuration)
          Creates an include dispatcher for the specified configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Controller

public Controller(ICommandProcessor commandProcessor,
                  IVariableRegistry variableRegistry,
                  IScriptingService scriptingService)
Creates a new Controller.

Parameters:
commandProcessor - The queue to add commands to.
brandSelection - The currently selected brand.
variableRegistry - The variable registry.
scriptingService - The scripting service
Method Detail

createForward

public IForwardDispatcher createForward(DispatchConfiguration configuration)
Description copied from interface: IController
Creates a forward dispatcher for the specified configuration.

Specified by:
createForward in interface IController
Parameters:
configuration - The configuration to apply to the dispatcher.
Returns:
A new dispatcher for the specified configuration.

createExit

public IExitDispatcher createExit(ExitConfiguration configuration,
                                  AssignmentConfiguration[] assignments)
Description copied from interface: IController
Creates an exit dispatcher for the specified configuration.

Specified by:
createExit in interface IController
Parameters:
configuration - The configuration to apply to the dispatcher.
assignments - TODO
Returns:
A new dispatcher for the specified configuration.

createInclude

public IIncludeDispatcher createInclude(DispatchConfiguration configuration)
Description copied from interface: IController
Creates an include dispatcher for the specified configuration.

Specified by:
createInclude in interface IController
Parameters:
configuration - The configuration to apply to the dispatcher.
Returns:
A new dispatcher for the specified configuration.